package com.qf.day12;

/**
 * @author wgy
 * @version V1.0
 * @Project day12
 * @Package com.qf.day12
 * @Description: ${TODO}
 * @Date 2021/6/2 9:34
 */
public class Dog extends Animal {
    /**
     * 毛色
     */
    private String furColor;

    public Dog(){

    }
    public Dog(String breed, int age, String sex, String furColor) {
        super(breed, age, sex);
        this.furColor = furColor;
    }

    public String getFurColor() {
        return furColor;
    }

    public void setFurColor(String furColor) {
        this.furColor = furColor;
    }

    public void run(){
        System.out.println("狗狗开始奔跑...");
    }
    //重写eat()

    @Override
    public void eat() {
        System.out.println("狗狗大口大口吃狗粮");
    }

    @Override
    public void show() {
        System.out.println("狗狗信息：品种:"+super.getBreed()+" 年龄:"+super.getAge()+" 性别:"+super.getSex()+" 毛色:"+this.furColor);
    }
}
